

import 'package:yb_zsyiji_androidflutter_pro/YBJsonToModel/YBWorkTaiModel/YBWorkTaiRequestModel.dart';

import 'YBGongGongCreateTimeModel.dart';

class YBWorkTaiGongGongYouXuanModel {

  String getTime;
  int sourceType;
  int status;
  String provinceName;
  String createTime;
  String cityName;
  String requestServiceDesc;
  String linkName;
  String linkPhone;
  String updateTime;
  YBWorkTaiRequestModel request;
  List<YBGongGongCreateTimeModel> requestAssignRecordList;

  YBWorkTaiGongGongYouXuanModel({this.getTime,this.sourceType,this.status,this.createTime,this.requestAssignRecordList,this.provinceName,this.cityName,this.updateTime,this.linkPhone,this.linkName,this.requestServiceDesc});

  YBWorkTaiGongGongYouXuanModel.fromJson(Map<String,dynamic>json){
    getTime = json['getTime'];
    sourceType = json['sourceType'];
    status = json['status'];
    createTime = json['createTime'];
    provinceName = json['provinceName'];
    cityName = json['cityName'];
    requestServiceDesc = json['requestServiceDesc'];
    linkName = json['linkName'];
    linkPhone = json['linkPhone'];
    updateTime = json['updateTime'];
    if (json['requestAssignRecordList'] != null) {
       requestAssignRecordList = List<YBGongGongCreateTimeModel>();
       json['requestAssignRecordList'].forEach((e){
         requestAssignRecordList.add(YBGongGongCreateTimeModel.fromJson(e));
       }); 
    }

    if (json['request'] != null){
      request = YBWorkTaiRequestModel.fromJson(json['request']);
    }
  }
}